package com.example.music.mapper;

import com.example.music.domain.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    public List<Product> getProducts();
    public List<Product> selectProductByName(String name);
    public Product selectProductById(Long id);
    public int insertProduct(Product product);
    public int updateProduct(Product product);
    public int deleteProductById(Long id);
}
